package com.yk.neon.lib.util.mybatis.repository;



import com.yk.neon.lib.util.mybatis.entity.Persistable;

import java.io.Serializable;

public interface CrudRepository<T extends Persistable, ID extends Serializable> {

	<S extends T> S insert(S entity);

	<S extends T> S insertSelective(S entity);

	<S extends T> S update(S entity);

	<S extends T> S updateByPrimaryKeySelective(S entity);

	T findOne(ID id);

	boolean exists(ID id);

}
